package com.zhz.mall.portal.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.math.BigDecimal;

/***
 * @author zhouhengzhe
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel("商品的数据传输对象")
public class ProductDTO {
    private Long id;
    private String name;
    private String pic;
    @ApiModelProperty("促销价格")
    private BigDecimal promotionPrice;
    @ApiModelProperty("商品价")
    private BigDecimal price;
    @ApiModelProperty("市场价")
    private BigDecimal originalPrice;
    @ApiModelProperty("副标题")
    private String subTitle;
    @ApiModelProperty("控制价格是否要加上 xx元起 ，如果=1就不需要加，如果=0否则需要")
    private Integer sub;

}
